home *** CD-ROM | disk | FTP | other *** search
- Path: gos.ukc.ac.uk!jsr4
- From: jsr4@ukc.ac.uk (Monts)
- Newsgroups: comp.lang.asm.x86,comp.lang.c,comp.lang.c++,comp.programming
- Subject: Re: Tough Question: Get a Hard-disk's Brand/Model No....
- Date: Mon, 01 Apr 96 15:13:04 GMT
- Organization: University of Kent at Canterbury, UK.
- Sender: jsr4@ukc.ac.uk
- Message-ID: <15059@gos.ukc.ac.uk>
- References: <3144773A.256A@pacific.net.sg> <4j7m0g$lp6@centaur.achilles.net>
- Reply-To: jsr4@ukc.ac.uk (Monts)
- NNTP-Posting-Host: gos.ukc.ac.uk
-
- In article <4j7m0g$lp6@centaur.achilles.net>,
- Yousuf Khan <ykhan@achilles.net> wrote:
- >Allen Te <pcdirect@pacific.net.sg> wrote:
- >
- >>I've seen a few programs that are actually able to detect
- >>a hard-disk's brand/model.
- >>Eg, Conners AP540, Maxtor MT1200 etc....
- >
- >>Is that possible using some interrupts? Can someone give
- >>me some source for doing that?
- >
- >It's not possible with any standard interrupt services -- it's too
- >specialized to bother to implement as some kind of an operating system
- >API function. You would have to go into I/O ports that control the
- >hard disk directly.
-
- It's not too difficult at all from what I remember, just a matter of
- setting the drive up to do a read and then reading off the information
- block.
-
- one thing though, how do you tell what irq line / port address the
- controller(s) are running off in an EIDE system? I was pondering
- on that one a while back and couldn't come up with a good answer...
-
- (what I really need is a way of telling which is the primary and
- which is the secondary controller)
-
- (email would be great if anyone can come up with a good answer,
- I'm *still* stuck accessing the 'net at the colossal rate of
- 2400 baud... :)
-
- cheers
-
- Jules
-
- --
- <9~ .. .. ---.. .. .--..--- .. .. <9~
- (W) ___.' ` ' ` .- || || |-- `--. -. ' ` ' `.___ (W)
- `..' `..' __.'`._.'`.__`._.__.' `..' `..'
- Julian Richardson * University of Kent
-